package com.xuzong.pojo;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import java.io.Serializable;
import java.time.LocalDateTime;

import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.Data;

/**
 * 
 * @TableName tb_warehouse
 */
@TableName(value ="tb_warehouse")
@Data
public class TbWarehouse implements Serializable {
    /**
     * id
     */
    @TableId(type = IdType.AUTO)
    private Integer id;

    /**
     * 商品名称
     */
    private String name;

    /**
     * 批次
     */
    private String batchNum;

    /**
     * 防伪码
     */
    private String secureCode;

    @TableField(exist = false)
    private Integer code;

    /**
     * 二维码
     */
    private String url;

    /**
     * 代理商
     */
    private String agentName;


    @JsonFormat(shape = JsonFormat.Shape.STRING,pattern = "yyyy-MM-dd HH:mm:ss")
    private LocalDateTime createTime;

    /**
     * 查询次数
     */
    private Integer queryNum;

    /**
     * 商品状态
     */
    private Integer currentStatus;

    /**
     *  省
     */
    private Integer provinceId;

    @TableField(exist = false)
    private String proName;

    /**
     *   市
     */
    private Integer cityId;
    @TableField(exist = false)
    private String cityName;
    /**
     *   县
     */
    private Integer countyId;
    @TableField(exist = false)
    private String countName;

    @TableField(exist = false)
    private static final long serialVersionUID = 1L;
}